const mongoose = require('mongoose')
const schema = new mongoose.Schema({
    // userId: {
    //     type: mongoose.SchemaTypes.ObjectId,
    //     ref: 'User',
    // },
    bossId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Boss',

    },
    count: {
        type: Number,
        required: true
    },
    boss: {
        type: String,
        required: true
    },
    price: {
        type: String
    },
    product: {
        type: String,
        required: true
    },
}, {
    timestamps: {
        createdAt: 'createTime',
        updatedAt: 'updateTime'
    }
})


module.exports = mongoose.model('Bill', schema)